﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace KXmlUIControl
{
    /// <summary>
    /// 应用程序的模块配置节点
    /// </summary>
    public class XmlModuleObject
    {
        /// <summary>
        /// 模块对象的唯一标识符(int)
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 模块名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 中文名称
        /// </summary>
        public string ChineseName { get; set; }

        /// <summary>
        /// 模块动态库的保存目录
        /// </summary>
        public string Directory { get; set; }     

        private bool _enabled = true;       
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable
        { 
            get{ return _enabled; }
            set{ _enabled = value; }
        }
          
        public XmlModuleObject()
        {

        }
      
        public override string ToString()
        {
            return ChineseName;
        }
    }
}
